Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-developer is "service-info-dev">

It allows to retrieve information about a service using its serviceUri.

Inputs

A JSON with these parameters:
serviceuri string
serviceUri (http://...) of the service
fromtime string
fromtime, date/time from when retrieve realtime data. The string format can be: n-day, n-hour, n-minute or yyyy-mm-ddThh:mm:ss
totime string
totime, date/time to when retrieve realtime data. The string format can be: yyyy-mm-ddThh:mm:ss
valuename string
A service uri may have several values available. With valuename you can indicate which of the values you want to receive in response by filtering them out.
lang string
ISO 2 chars language code (e.g. “it”, “en”, “fr”, “de”, “es”) to be used for returned descriptions if available in multiple languages. Currently for languages other than “it” and “en” it returns “en” descriptions. (if parameter is missing “en” is assumed)

Outputs

The It provides a GeoJSON description of the service with the main properties (name, address, city, type, etc.) and possibly some time varying properties for some kinds of services (traffic sensors, car park sensors, etc.)

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.